package com.yiban.demo.Access.DAO;

import com.yiban.demo.Access.Entity.Access;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AccessMapper {

    List<Access> selectAllAccess();

    boolean updateAccessById(Access access);

    int insertBatch(@Param("accesses") List<Access> accesses);

    int deleteAccessBatchByIds(@Param("ids") List<Integer> ids);

    @Select("SELECT distinct role from access")
    List<String> selectAllRole();

}
